#include <cstdio>
using namespace std;

int main()
{
    int sum = 0, n = 0;
    for (; sum <= 1000; n++)
        sum += n;
    n--;
    printf("%d\n", n);
    return 0;
}